<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
    <style>
        .container {
            display: flex;
            justify-content: center;
            flex-direction: column;
            align-items: center;
        }

        * {
            margin: 0;
            padding: 0;
        }

        .tab {
            margin: 100px auto;
            width: 80vw;
            display: flex;
            justify-content: center;
            flex-direction: column;
        }

        .tab_list li {
            width: 25%;
            float: left;
            height: 39px;
            line-height: 39px;
            text-align: center;
            list-style: none;
            cursor: pointer;
            /*鼠标改变样式*/
        }

        .tab_list {
            background-color: #f5f5f5;
        }

        .tab_list .current {
            border-radius: 10px;

            background-color: #c81623;
            color: #fff;
        }

        .item_info {
            padding: 20px 0 0 20px;
        }

        .item {

            display: none;
        }

        .top1 {
            width: 20px;
            height: 20px;
            background-color: #f73131;
            border-radius: 25%;
            color: #fff;
            text-align: center;
            line-height: 20px;
            margin: auto;
        }

        .top2 {
            width: 20px;
            height: 20px;
            background-color: #ff6600;
            border-radius: 25%;
            color: #fff;
            text-align: center;
            line-height: 20px;
            margin: auto;
        }

        .top3 {
            width: 20px;
            height: 20px;
            background-color: #ffc20d;
            border-radius: 25%;
            color: #fff;
            text-align: center;
            line-height: 20px;
            margin: auto;
        }

        .top4 {
            width: 20px;
            height: 20px;
            background-color: #c5c7cd;
            border-radius: 25%;
            color: #fff;
            text-align: center;
            line-height: 20px;
            margin: auto;
        }

        .table {
            width: 100%;
            text-align: center;
            cursor: pointer;
        }

        tbody>tr:hover {
            background-color: #f0f3fd;
            color: #315efb;
        }

        .bg-gray {
            background-color: #fafafc;
        }
    </style>
</head>

<body>
    <div class="container">
        <h1>第九届软件学院IT杯</h1>
        <div>
            <!-- <span>排名</span> -->
            <div class="tab">
                <div class="tab_list">
                    <ul>
                        <li class="current">A组</li>
                        <li>B组</li>
                        <li>C组</li>
                        <li>D组</li>
                    </ul>
                </div>
                <!-- A组 -->
                <div class="tab_con">
                    <div class="item" style="display: block;">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>
                                        排名
                                    </th>
                                    <th>
                                        球队名
                                    </th>
                                    <th>
                                        胜/平/负
                                    </th>
                                    <th>
                                        进/失
                                    </th>
                                    <th>
                                        积分
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="bg-gray">
                                    <td>
                                        <div class="top1">1</div>
                                    </td>

                                    <td>
                                        20级软件开发2班
                                    </td>
                                    <td>
                                        1/0/0
                                    </td>
                                    <td>
                                        3/0
                                    </td>
                                    <td class="score">
                                        3
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="top2">2</div>
                                    </td>
                                    <td>
                                        21级软件开发1班
                                    </td>
                                    <td>
                                        0/0/1
                                    </td>
                                    <td>
                                        0/3
                                    </td>
                                    <td class="score">
                                        0
                                    </td>
                                </tr>
                                <tr class="bg-gray">
                                    <td>
                                        <div class="top3">3</div>
                                    </td>
                                    <td>
                                        20级区块链班
                                    </td>
                                    <td>
                                        0/0/0
                                    </td>
                                    <td>
                                        0/0
                                    </td>
                                    <td class="score">
                                        0
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="top4">4</div>
                                    </td>
                                    <td>
                                        20级大数据1班
                                    </td>
                                    <td>
                                        0/0/0
                                    </td>
                                    <td>
                                        0/0
                                    </td>
                                    <td class="score">
                                        0
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="top4">5</div>
                                    </td>
                                    <td>
                                        20级大数据3班
                                    </td>
                                    <td>
                                        0/0/0
                                    </td>
                                    <td>
                                        0/0
                                    </td>
                                    <td class="score">
                                        0
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- <div class="item">规格与包装模块内容</div>
						<div class="item">售后保障模块内容</div>
						<div class="item">手机社区模块内容</div>
						<div class="item">商品（50000+）模块内容


						</div> -->
                </div>
                <!-- B组 -->
                <div class="tab_con">
                    <div class="item" style="display: none;">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>
                                        排名
                                    </th>
                                    <th>
                                        球队名
                                    </th>
                                    <th>
                                        胜/平/负
                                    </th>
                                    <th>
                                        进/失
                                    </th>
                                    <th>
                                        积分
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="bg-gray">
                                    <td>
                                        <div class="top1">1</div>
                                    </td>
                                    <td>
                                        22级软件开发1班
                                    </td>
                                    <td>
                                        1/0/0
                                    </td>
                                    <td>
                                        3/1
                                    </td>
                                    <td class="score">
                                        3
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="top2">2</div>
                                    </td>
                                    <td>
                                        20级软件开发1班
                                    </td>
                                    <td>
                                        0/0/1
                                    </td>
                                    <td>
                                        1/3
                                    </td>
                                    <td class="score">
                                        0
                                    </td>
                                </tr>
                                <tr class="bg-gray">
                                    <td>
                                        <div class="top3">3</div>
                                    </td>
                                    <td>
                                        22级大数据班
                                    </td>
                                    <td>
                                        0/0/0
                                    </td>
                                    <td>
                                        0/0
                                    </td>
                                    <td class="score">
                                        0
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="top4">4</div>
                                    </td>
                                    <td>
                                        22级软件开发2班
                                    </td>
                                    <td>
                                        0/0/0
                                    </td>
                                    <td>
                                        0/0
                                    </td>
                                    <td class="score">
                                        0
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="top4">5</div>
                                    </td>
                                    <td>
                                        20级大数据2班
                                    </td>
                                    <td>
                                        0/0/0
                                    </td>
                                    <td>
                                        0/0
                                    </td>
                                    <td class="score">
                                        0
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!-- C组 -->
                <div class="tab_con">
                    <div class="item" style="display: none;">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>
                                        排名
                                    </th>
                                    <th>
                                        球队名
                                    </th>
                                    <th>
                                        胜/平/负
                                    </th>
                                    <th>
                                        进/失
                                    </th>
                                    <th>
                                        积分
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="bg-gray">
                                    <td>
                                        <div class="top1">1</div>
                                    </td>
                                    <td>
                                        21级大数据1班
                                    </td>
                                    <td>
                                        0/0/0
                                    </td>
                                    <td>
                                        0/0
                                    </td>
                                    <td class="score">
                                        0
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="top2">2</div>
                                    </td>
                                    <td>
                                        21级区块链班
                                    </td>
                                    <td>
                                        0/0/0
                                    </td>
                                    <td>
                                        0/0
                                    </td>
                                    <td class="score">
                                        0
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="top3">3</div>
                                    </td>
                                    <td>
                                        22级区块链班
                                    </td>
                                    <td>
                                        0/0/0
                                    </td>
                                    <td>
                                        0/0
                                    </td>
                                    <td class="score">
                                        0
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="top4">4</div>
                                    </td>
                                    <td>
                                        20级软件开发3班
                                    </td>
                                    <td>
                                        0/0/0
                                    </td>
                                    <td>
                                        0/0
                                    </td>
                                    <td class="score">
                                        0
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!-- D组 -->
                <div class="tab_con">
                    <div class="item" style="display: none;">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>
                                        排名
                                    </th>
                                    <th>
                                        球队名
                                    </th>
                                    <th>
                                        胜/平/负
                                    </th>
                                    <th>
                                        进/失
                                    </th>
                                    <th>
                                        积分
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="bg-gray">
                                    <td>
                                        <div class="top1">1</div>
                                    </td>
                                    <td>
                                        21级软件开发3班
                                    </td>
                                    <td>
                                        0/0/0
                                    </td>
                                    <td>
                                        0/0
                                    </td>
                                    <td class="score">
                                        0
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="top2">2</div>
                                    </td>
                                    <td>
                                        21级软件开发4班
                                    </td>
                                    <td>
                                        0/0/0
                                    </td>
                                    <td>
                                        0/0
                                    </td>
                                    <td class="score">
                                        0
                                    </td>
                                </tr>
                                <tr class="bg-gray">
                                    <td>
                                        <div class="top3">3</div>
                                    </td>
                                    <td>
                                        21级软件开发2班
                                    </td>
                                    <td>
                                        0/0/0
                                    </td>
                                    <td>
                                        0/0
                                    </td>
                                    <td class="score">
                                        0
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="top4">4</div>
                                    </td>
                                    <td>
                                        21级大数据2班
                                    </td>
                                    <td>
                                        0/0/0
                                    </td>
                                    <td>
                                        0/0
                                    </td>
                                    <td class="score">
                                        0
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
</body>
<script>
    //获取元素
    var items = document.querySelectorAll('.item');
    var tab_list = document.querySelector('.tab_list');
    var lis = tab_list.querySelectorAll('li');
    for (var i = 0; i < lis.length; i++) {
        lis[i].setAttribute('index', i);
        lis[i].onclick = function () {

            for (var i = 0; i < lis.length; i++) {
                lis[i].className = '';
            }
            this.className = 'current';
            var index = this.getAttribute('index');
            for (var i = 0; i < items.length; i++) {
                items[i].style.display = 'none';
            }
            items[index].style.display = 'block';
        }
    }
    var score
</script>

</html>